package address.model.service;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import address.domain.Address;
import address.model.dao.AddressDAO;

@Service
public class AddressServiceImpl implements AddressService{
	
	@Autowired
	private AddressDAO dao;
	
	public Address getAddressByDong(String id) throws SQLException{
		
		Address address = dao.selectAddressByDong(id);
		return address;
	}
}
